import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/login/login'
import Regist from '@/views/regist/regist'
import Home from '@/views/home/home'
import List from '@/views/list/list'
import Message from '@/views/message/message'
import Mine from '@/views/mine/mine'
import ChangePass from '@/views/changePass/changePass'
import UpdateInfo from '@/views/updateInfo/updateInfo'
import Admin from '@/views/admin/admin'
import Users from '@/views/admin/users'
import Add from '@/views/admin/add'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/regist',
      name: 'Regist',
      component: Regist
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/list',
      name: 'List',
      component: List
    },
    {
      path: '/message',
      name: 'Message',
      component: Message
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine
    },
    {
      path: '/changePass',
      name: 'ChangePass',
      component: ChangePass
    },
    {
      path: '/updateInfo',
      name: 'UpdateInfo',
      component: UpdateInfo
    },
    {
      path: '/admin',
      name: 'Admin',
      component: Admin
    },
    {
      path: '/users',
      name: 'Users',
      component: Users
    },
    {
      path: '/add',
      name: 'Add',
      component: Add
    }
  ]
})
